home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Macintosh Memory / MemoryError.cp < prev    next >
Text File  |  2000-06-23  |  268b  |  18 lines

  1. // MemoryError.cp
  2.  
  3. #ifndef MemoryError_h
  4. #include "MemoryError.h"
  5. #endif
  6.  
  7. void MemoryError::ThrowCurrent()
  8.   {
  9.     OSErr error = MemError();
  10.     if ( error != noErr )
  11.         throw MemoryError( error );
  12.   }
  13.  
  14. void MemoryError::DebugCurrent()
  15.   {
  16.     OSError::Debug( MemError() );
  17.   }
  18.